#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

#include "des.h"

// DES key is 8 bytes long
#define DES_KEY_SIZE 8

int main(int argc, char* argv[]) 
{
    char key[DES_KEY_SIZE] = "abcd123U";
    char czx[] = "abc12341";
    char *encode, *decode;
    encode = string_encode(czx, key);
    printf("src=%s\n", czx);
    printf(" en=%s\n", encode);

    decode = string_decode(encode, key);
    printf(" dc=%s\n", decode);
    free(encode);
    free(decode);

    return 0;
}
